home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Tools & Apps / Testing & Debugging / Virtual User Libraries & Tools / VU-Related Tools / vuCollect 1.0b1 / vuCollect ReadMe < prev    next >
Encoding:
Text File  |  1992-05-04  |  3.4 KB  |  45 lines  |  [ttro/ttxt]

  1.  
  2. vuCollect and vuFormatter
  3.  
  4. vuCollect and vuFormatter work together to collect and reformat descriptor information from Virtual user.  This structured format makes the output very readable and is also useful for documenting application descriptor info.
  5.  
  6. The simplest way to use these is to copy the two files to your MPW Tools Folder.  Then when you want nice readable descriptor information about target windows, simply type:
  7.  
  8.             vuCollect -t "*:TargetName" 
  9.  
  10. For other descriptor information use the "-d" option.  For example to see menu information type:
  11.  
  12.             vuCollect -t "*:TargetName" -d "menu"
  13.  
  14. note: vuCollect needs VU to be accessible as well - place VU in your MPW Tools folder  if necessary.
  15.  
  16. vuCollect makes use of the VU menu script (if installed - see VU docs) and its associated default variables for zones, targets, etc.  After "Pick Target" is selected from the VU menu and a target is selected from the list, the user could simply type: 
  17.  
  18.             vucollect
  19.  
  20. Adding "vuCollect" and "relMouse" to the VU menu.
  21.  
  22. This is easy too!  Simply place the two start-up scripts:
  23.  
  24.     UserStartup•vuExtras        - enclosed in the vuCollect folder
  25.     UserStartup•VU            - enclosed in the VU folder
  26.  
  27. into your MPW folder and relaunch MPW.  "UserStartup•VU" will probably ask you to locate your Virtual User folder and resave the start-up file (one time only).  From then on, run vuCollect (in default window descriptor mode) by using the pull down menu item "vuCollect" under VU.  
  28.  
  29. Running vuCollect from the VU menu will always append the descriptor information to the default output window selected by "Set Output File".  The user can set the output file to the Worksheet using this menu item if desired.  If vuCollect is executed as a command line statement, the current window is output to unless the redirection symbol ">" is used.
  30.  
  31.  
  32. Additional data provided by vuFormatter
  33.  
  34. The tool also adds some additional information to the descriptor.  Whenever a window descriptor is requested (default selection), all items, controls, etc., appearing in the window will have an absolute rectangle position (provided by VU) followed by a pair of coordinates to show the relative position of the item within its window.  Additionally, after every occurrence of a rectangle ("r: {x1, y1, x2, y2}"), a pair of size integers will be enclosed in parenthesis.  This makes visualizing the various descriptors according to size much easier as the user doesn't have to perform any manual calculations for sizes.  
  35.  
  36. Note: the structural integrity of the descriptor remains fully intact (i.e.  by double-clicking in front of any bracket, the text will be highlighted up to the corresponding bracket.)  This is very useful for deleting segments of the descriptor which are not of immediate concern.
  37.  
  38.  
  39.  
  40. relMouse
  41.  
  42. Simple task to report on the position of the mouse relative to a specified window.  This task is especially useful when added to the VU menu in MPW.  To do this, place the "UserStartup•vuExtras" file (located in the vuCollect folder) in the MPW folder and place "relMouse.vu" (also located in the vuCollect folder) into the "MPW Scripts" folder, which can be found in the Virtual User folder.  
  43.  
  44. Relaunch MPW - you may be requested to locate the VirtualUser folder via a Std.File dialog.  After the VU menu is properly installed and the targets have been selected, you can simply select 'relMouse' from the VU menu and the system will report the position of the mouse relative to the top-most window.
  45.